package com.csap.framework.oauth2.impl;

import com.csap.framework.oauth2.cache.StrategyType;
import com.csap.framework.oauth2.model.GpsResponse;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

/**
 * 数据层
 *
 * @Author ycf
 * @Date 2022/3/10 4:49 PM
 * @Version 1.0
 */
@Component
public class EleGpsServiceImpl implements DataFunction<GpsResponse> {

    @Override
    public GpsResponse apply(Long aLong) {
        return GpsResponse.builder().lat(BigDecimal.valueOf(134344343)).lng(BigDecimal.valueOf(124343)).build();
    }

    @Override
    public StrategyType strategyType() {
        return StrategyType.GPS;
    }

}
